package com.yuandian.business.monitor.controller;

import com.yuandian.api.business_monitor.po.E2eStudyParam;
import com.yuandian.bpm.common.core.util.R;
import com.yuandian.business.monitor.service.IE2eStudyResultService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 说明：端到端学习结果controller
 * @Author zfsn
 * @Date 2023/7/12 14:28
 */
@RestController
@RequestMapping("/study/e2e/result")
public class E2eStudyResultController {

    @Autowired
    private IE2eStudyResultService eStudyResultService;

    /**
     * 分页查询端到端学习结果列表
     * @param param 端到端学习请求参数
     * @return 通用返回结果
     */
    @PostMapping("/page")
    public R page(@RequestBody E2eStudyParam param) {
        return eStudyResultService.page(param);
    }
}
